﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Gizmox.WebGUI.Forms;

namespace WaveMaster.Holidays.Club.Web
{
    [Serializable()]
    public class SearchTravelAgentComboBox : ComboBox
    {
        private SearchTravelAgentForm mobjDropDown = null;
        UserControlLogin m_parent;

        public SearchTravelAgentComboBox()
        {
            this.DropDownStyle = ComboBoxStyle.DropDown;
        }

        public void SetParent(UserControlLogin parent)
        {
            m_parent = parent;
        }

        protected override Form GetCustomDropDown()
        {
            if (mobjDropDown == null)
            {
                //mobjDropDown = new SearchTravelAgentForm(m_parent);
            }

            return mobjDropDown;
        }

        protected override bool IsCustomDropDown
        {
            get
            {
                return true;
            }
        }

        public void ShowCustomComboBox()
        {
            GetCustomDropDown();
        }
    }
}